﻿// Client connected
application.onAppStart=function(){
	this.allowDebug=true;
}

application.onConnect=function(client){
	application.acceptConnection(client);
	client.callFromClient = function(str) {
		trace("Server return");
		return "Hello Mr " + str + " :-D~";
	}
}
//Client disconnected
application.onDisconnect = function( client )
{
	//Trace on the FMS Application console 
	trace( client+" is disconnected" );
}